export enum ErrorType {
  UNAUTHORIZED = "Unauthorized", //无授权权限不通过或者没登录
  BADREQUEST = "Bad Request" //验证错误或者业务错误
}
/**
 * 错误返回信息格式
 *
 * @export
 * @interface ErrRes
 */
export interface ErrRes {
  response: {
    data: ErrData; //错误数据
    status: number;
    statusText: string;
    headers: object;
    config: object;
    request: object;
  };
}

/**
 * 错误返回数据格式
 *
 * @export
 * @interface ErrData
 */
export interface ErrData {
  statusCode: number;
  message: string | string[];
  error: ErrorType;
}
